import html
import cgi

class icgi:
  def __init__(self):
    self.q = cgi.FieldStorage()

  def param(self,name=None):
    """
    returns the value or values of the given cgi parameter.

    """
    if name != None:
      if self.q.has_key(name):
        return self.q[name].value
